package com.iss.card.view.collent;

import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.TextView;

import com.iss.card.R;

/**
 * 
 * @author issuser
 * 
 */
public class CollentFragment extends Fragment {
	private static final String TAG = CollentFragment.class.getSimpleName();
	private Activity mContext;
	private CollentView mCollentView;

	@Override
	public void onAttach(Activity activity) {
		super.onAttach(activity);
		mContext = activity;
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		Log.i(TAG, "onCreateView");
		FrameLayout view = (FrameLayout) inflater.inflate(
				R.layout.frame_collect_list_view, null);
		((TextView) view.findViewById(R.id.job_name_val))
				.setText(R.string.tab_menu_shopping);
		mCollentView = new CollentView(mContext, view);
		return view;
	}

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Log.i(TAG, "onCreate");
	}

	@Override
	public void onDestroy() {
		super.onDestroy();
		Log.i(TAG, "onDestroy");
	}

	@Override
	public void onDestroyView() {
		super.onDestroyView();
		Log.i(TAG, "onDestroyView");
	}

	@Override
	public void onDetach() {
		super.onDetach();
		Log.i(TAG, "onDetach");
	}

	@Override
	public void onPause() {
		super.onPause();
		Log.i(TAG, "onPause");
	}

	@Override
	public void onResume() {
		super.onResume();
		Log.i(TAG, "onResume");
		mCollentView.loadMarkedProductList();
	}

	@Override
	public void onStart() {
		super.onStart();
		Log.i(TAG, "onStart");
	}

	@Override
	public void onStop() {
		super.onStop();
		Log.i(TAG, "onStop");
	}

}
